package com.HomeWorkhsp.chapter13.string_;

public class StringExercise05 {
    public static void main(String[] args) {
        People p1 = new People();
        p1.name = "hspedu";
        People p2 = new People();
        p2.name = "hspedu";

        System.out.println(p1.name.equals(p2.name));
        System.out.println(p1.name == p2.name);
        System.out.println(p1.name == "hspedu");

        String s1 = new String("bcde");
        String s2 = new String("bcde");
        System.out.println(s1 == s2);

    }
}
class People{
    public String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}